package it.uniroma2.structure;

public class ConditionControl implements BPEL_Element{
	private String expression;
	private General_Sequence_Control sequence;
	
	public ConditionControl(){
		this.expression = "true()";
	}
	
	public ConditionControl(String expression){
		this.expression = expression;
	}
	
	public void setExpression(String expression) {
		this.expression = expression;
	}

	@Override
	public String toBPEL() {
		return "<" + conditionTag + "><![" + expressionTag + "[" + this.expression + "]]></" + conditionTag + ">\n";
//		return output + "</" + conditionTag + ">\n";
	}
}
